name: CI

on:
  push:

jobs:
  lint:
    runs-on: ubuntu-latest
    container: golangci/golangci-lint:v1.57.2-alpine
    steps:
      - name: install npm
        run: apk add npm
      - name: checkout repository
        uses: actions/checkout@v2
      - name: lint version
        run: golangci-lint version
      - name: lint run
        run: golangci-lint run -v
  test:
    runs-on: ubuntu-latest
    container: golang:1.22.2-alpine3.19
    steps:
      - name: install git, curl, npm
        run: apk add git curl npm
      - name: checkout repository
        uses: actions/checkout@v2
      - name: go version
        run: go version
      - name: test run
        run: go test ./...